package com.hdsx.restful.mapquery.total.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hdsx.restful.mapquery.total.bean.Distcode;
import com.hdsx.restful.mapquery.total.bean.Statistics;
import com.hdsx.restful.mapquery.total.mapper.DistcodeMapper;
import com.hdsx.restful.mapquery.total.mapper.StatisticsMapper;
import com.hdsx.restful.mapquery.total.service.StatisticsService;
@Service
public class StatisticsServiceImpl implements StatisticsService{
	@Resource(name="statisticsMapper")
	private StatisticsMapper mapper;
	@Resource(name="distcodeMapper")
	private DistcodeMapper distcodeMapper;
	@Override
	public List<Statistics> queryCountByCDLX(String lxdm) {
		// TODO Auto-generated method stub
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return mapper.queryCountByCDLX(parameter);
	}
	@Override
	public List<Statistics> queryCountByJSDJ(String lxdm) {
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return mapper.queryCountByJSDJ(parameter);
	}
	@Override
	public List<Statistics> queryCountByLMLX(String lxdm) {
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return mapper.queryCountByLMLX(parameter);
	}
	@Override
	public List<Statistics> queryCountByQLFL(String lxdm) {
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return mapper.queryCountByQLFL(parameter);
	}
	@Override
	public List<Statistics> queryCountByPDDJ(String lxdm) {
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return mapper.queryCountByPDDJ(parameter);
	}
	@Override
	public List<Distcode> queryDiscodeByLXBM(String lxdm) {
		Map<String,String> parameter=new HashMap<String, String>();
		parameter.put("lxdm",lxdm);
		return distcodeMapper.queryDiscodeByLXBM(parameter);
	}

}
